<!--
 * @Author: 杨文涓 943701297@qq.com
 * @Date: 2022-04-20 08:53:52
 * @LastEditors: 杨文涓 943701297@qq.com
 * @LastEditTime: 2022-05-08 09:29:48
 * @FilePath: \Webc:\Users\94370\Desktop\面向工作学习\html css\6-CSS 四 (第六天)\12-小米布局案例.html
 * @Description: 
 * 
 * Copyright (c) 2022 by 杨文涓 943701297@qq.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>利用ul布局小米</title>
	<style>
		* {
			padding: 0;
			margin: 0;
		}

		li {
			list-style: none;
		}

		.box {
			width: 1226px;
			height: 285px;
			background-color: pink;
			margin: 0 auto;
		}

		.box li {
			float: left;
			width: 296px;
			height: 285px;
			background-color: purple;
			margin-right: 14px;
		}

		.box .last {
			margin-right: 0;
		}

		.box img {
			width: 100%;
			height: 100%;
		}
	</style>
</head>

<body>
	<ul class="box">
		<li><img src="redmi k30i.jpg" alt=""></li>
		<li><img src="redmi k30pro.jpg" alt=""></li>
		<li><img src="手环.jpg" alt=""></li>
		<li class="last">4</li>
	</ul>
</body>

</html>